<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui">
	<ui:composition template="/templates/padrao.xhtml">
		<ui:define name="barraTitulo">Cadastro de Aletar dados</ui:define>
		<ui:define name="conteudo">
			<h:form id="form">
				<p:dialog header="Mensagem" id="dialog1" widgetVar="dialog" fixedCenter="true" modal="true" visible="#{facesContext.maximumSeverity != null}">
				   <p:messages/>                     
				</p:dialog>
				
				
				<p:tabView id="divTabView">
					<p:tab title="Cadastro">
						<h:panelGrid columns="2" columnClasses="width150 alinhaDir, width500">
							<h:outputText value=""/>
							<h:outputText value="Os campos com asterisco (*) s&atilde;o de preenchimento obrigat&oacute;rio." styleClass="campoObrigatorio" />					
							<h:outputText value="Nome:" styleClass=""/>
							<h:outputText value="#{controleLogin.usuario.nome}" styleClass=""/>
							<h:outputText value="Login:" styleClass=""/>
							<h:outputText value="#{controleLogin.usuario.login}" styleClass=""/>
							<h:outputText value="Email:" styleClass=""/>
							<h:inputText  value="#{controleLogin.usuario.email}" requiredMessage="Campo [Email] obrigat&oacute;rio" size="100"/>
							<h:outputText value="Senha Anterior:" styleClass=""/>	
							<h:inputSecret value="#{controleLogin.senhaAnterior}" size="30"/>
							<h:outputText value="Senha Nova:" styleClass=""/>	
							<p:password minLength="6" value="#{controleLogin.senhaNova}" styleClass="textfield" size="30"
								promptLabel="Digite uma senha segura" 
								goodLabel="Boa" 
								weakLabel="Razo&aacute;vel" 
								trongLabel="Excelente"
								strongLabel="Forte" />	
							<h:outputText value="Senha Nova(confirma&ccedil;&atilde;o):" styleClass=""/>	
							<p:password minLength="6" value="#{controleLogin.senhaConfirmacao}" styleClass="textfield" size="30"
								promptLabel="Digite uma senha segura" 
								goodLabel="Boa" 
								weakLabel="Razo&aacute;vel" 
								trongLabel="Excelente"
								strongLabel="Forte" />	
						</h:panelGrid>
					</p:tab>
				</p:tabView>				
				<h:commandLink action="#{controleLogin.gravarAlterarDados}" >
					<h:graphicImage url="/images/botoes/btnGravar.png" class="btnAcoes"/>
				</h:commandLink>
			</h:form>
		</ui:define>
	</ui:composition>
</html>